<?php
// implementation of add function
function getLinks($msisdn,$to,$sms,$trx_id,$content_code,$uid,$pwd) { 

	if($uid == 'viettel' && $pwd =='kr34tive123') {
	$ch = curl_init() or die(curl_error());
	curl_setopt($ch, CURLOPT_URL,"http://10.20.0.1:11001/sms/index_direct_api.php?msisdn=".$msisdn."&to=".$to."&sms=".$sms."&trx_id=".$trx_id."&content_code=".$content_code);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$data1=curl_exec($ch)  ;
	return $data1; 
	} else {
		return -1;
	}
 
}
?>
